package com.ecfront.service;

import java.util.Date;
import java.util.List;

import com.ecfront.pojo.Admin;

public interface AdminService {
	public abstract void addOrUpdateAdmin(int adminId,String adminName,String adminPassword,Date lastLoginDate,Date lastLoginErrorDate,String lastLoginIP,String lastLoginErrorIP);
	
	public abstract void loginAdmin(Admin admin,Date lastLoginDate,Date lastLoginErrorDate,String lastLoginIP,String lastLoginErrorIP);

	public abstract void delete(Admin persistentInstance);

	public abstract List findByProperty(String propertyName, Object value);

	public abstract List findByAdminName(Object adminName);

	public abstract Admin findByAdminId(Integer id);
	
	public abstract List findAll();
	
	public abstract Admin findAdminByAdminNameAndAdminPassword(String adminName,String adminPassword);
}
